000e3daf521d365e34055470b10e8daa9fdf41d4,plugins/vcs/source_gen/jetbrains/mps/vcs/changesmanager/roots/NodeFileStatusMapping.java,NodeFileStatusMapping,invalidateNodeStatus,#SNodePointer#,61

Before Change


  }

  private void invalidateNodeStatus(@NotNull final SNodePointer nodePointer) {
    myRegistry.getCommandQueue().runTask(new Runnable() {
      public void run() {
        calcStatus(nodePointer);
        final FileStatusManager fsm = FileStatusManager.getInstance(myProject);
        final MPSNodesVirtualFileSystem nvfs = MPSNodesVirtualFileSystem.getInstance();
        fsm.fileStatusChanged(nvfs.getFileFor(nodePointer));
        ModelAccess.instance().runReadAction(new Runnable() {
          public void run() {
            SNode currentNode = nodePointer.getNode();
            for (EditorTabDescriptor d : ListSequence.fromList(myProject.getComponent(ProjectPluginManager.class).getTabDescriptors())) {
              SNode baseNode = d.getBaseNode(currentNode);
              if (baseNode != null && baseNode != currentNode) {
                fsm.fileStatusChanged(nvfs.getFileFor(baseNode));
                break;
              }
            }
          }
        });
      }
    });
  }

  private void calcStatus(@NotNull final SNodePointer root) {

After Change


  }

  private void updateNodeStatus(@NotNull final SNodePointer nodePointer) {
    myRegistry.getCommandQueue().runTask(new Runnable() {
      public void run() {
        calcStatus(nodePointer);
        statusChanged(nodePointer);
      }
    });
  }

  private void calcStatus(@NotNull final SNodePointer root) {